
#include "csharpLang.h"
#include "baseLang.h"

CSharpLanguage::CSharpLanguage(const string& name) : CompileLanguage(name) {
    suffix = "cs";
    extra_memory = 64 * 1024 * 1024;
    extra_time = 2000;
    suffixMap.emplace("cs", name);
}
std::string CSharpLanguage::compileFileStr(std::string filename, std::string target) const {
    if (target == "") {
        target = getBinaryFilename(filename);
    }
    return "mcs " + filename + " -out:" + target;
}
std::string CSharpLanguage::runFileStr(std::string filename) const {
    return "mono " + filename;
}

const Language* CSHARP_LANG = new CSharpLanguage{ "csharp" };
